home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / sgml / sgml2latex-format.1.3.tar.Z / sgml2latex-format.1.3.tar / rep / qwertz / man / mapping < prev    next >
Text File  |  1993-03-12  |  3KB  |  152 lines

  1.  
  2.  
  3. % qwertz manual replacement file
  4. % produces nroff using the man macros
  5.  
  6.  
  7. <manpage>    +    ".if n .ds Q \\&\"\n"
  8.             ".if t .ds Q ``\n"
  9.             ".if n .ds U \\&\"\n"
  10.             ".if t .ds U ''\n"    
  11.             ".TH [TITLE] [SECTNUM] \n" 
  12.  
  13.             % James Clark's trick to prevent unintended paragraph
  14.             % breaks
  15.  
  16.             ".tr \\&\n"
  17.  
  18.             % Number registers for lists
  19.  
  20.             ".nr bi 0\n"  % initialize begin items
  21.             ".nr ll 0\n"  % list level, stores current level
  22.             ".nr el 0\n"  % current enumeration level
  23.  
  24.             % Not all list levels are enumerations, as 
  25.             % itemizations can be embedded within enumerations
  26.             % and vice versa
  27.             
  28.             % type of list level is in \n(t\n(ll, where
  29.             % 0 : itemize, 1 : enumerate, 2: description
  30.  
  31.             % enumerator for an enumeration level is in
  32.             % \n(e\n(el -- i.e. \n(e1=2 means current item of
  33.             % enumeration level 1 is 2
  34.  
  35.             % context-sensitive paragraph macro
  36.  
  37. ".de Pp\n"
  38. ".ie \\\\n(ll>0 \\{\\\n"        % within list?
  39. ".ie \\\\n(bi=1 \\{\\\n"   % first par element of item?
  40. ".nr bi 0\n"     % reset bi flag
  41. % if itemization, mark with a bullet
  42. ".if \\\\n(t\\\\n(ll=0 \\{.IP \\\\(bu\\}\n" % itemize
  43. %  if enumeration: increment and print enumerator
  44. % for this enumeration level
  45. ".if \\\\n(t\\\\n(ll=1 \\{.IP \\\\n+(e\\\\n(el.\\}\n"
  46. % if first par element of descrip, do nothing
  47. ".\\}\n"  
  48. ".el .sp \n"        % subsequent par element of item
  49. ".\\}\n"
  50. ".el \\{\\\n"                 % not within list
  51. ".ie \\\\nh=1 \\{\\\n"    % first par after heading
  52. ".LP\n"    
  53. ".nr h 0\n"    % reset h flag
  54. ".\\}\n"            
  55. ".el .PP \n"   
  56. ".\\}\n"
  57. "..\n"    
  58.  
  59. </manpage>
  60.  
  61. <sect1>        +    ".SH "
  62. </sect1>
  63.  
  64. <heading>    
  65. </heading>        "\n\n"
  66.  
  67. <p>        +    ".Pp"        +
  68. </p>    
  69.  
  70.  
  71. <enum>        +    ".nr ll +1\n"        % increment list level
  72.             ".nr el +1\n"        % increment enumeration level
  73.             ".nr t\\n(ll 1\n"   % set type of level to enum
  74.             ".nr e\\n(el 0 1\n" % initialize enumerator
  75.             ".af e\\n(el \\*(f\\n(el\n" % style of enumerator
  76.             ".if \\n(ll>1 .RS"  +
  77. </enum>        +    ".if \\n(ll>1 .RE\n"            
  78.             ".nr el -1\n"        % decrement enumeration level
  79.             ".nr ll -1"    +   % decrement list level 
  80.  
  81. <descrip>    +    ".RS\n"
  82.             ".nr ll +1\n"        % increment list level
  83.             ".nr t\\n(ll 2\n"   % set type of level to descrip
  84. </descrip>    +    ".nr ll -1\n"        % decrement list level
  85.             ".RE"        +
  86.  
  87. % number register bi means "begin item".  Used in the .P macro to print
  88. % bullets or numbers at beginning of first paragraph of an item.
  89. % If bi=1 then the paragraph is the first one of the item.
  90.  
  91. <item>        +    ".nr bi 1"        +
  92. </item>    
  93.  
  94. <tag>        +    ".IP \""
  95. </tag>            "\"\n"
  96.             ".nr bi 1"            +
  97.  
  98. <sq>            "\\*Q"
  99. </sq>            "\\*U"    
  100.  
  101. <lq>        +    ".RS\n"
  102.             ".nr LL \\n(LL-\\n(PI"    +
  103. </lq>        +    ".nr LL \\n(LL+\\n(PI\n"
  104.             ".RE"            +
  105.  
  106. <em>            "\\fI"            
  107. </em>             "\\fP"            
  108.  
  109. <bf>            "\\fB"            
  110. </bf>            "\\fP"            
  111.  
  112. <it>            "\\fI"            
  113. </it>            "\\fP"        
  114.  
  115. <sf>            "\\f(HR"        
  116. </sf>            "\\fP"            
  117.  
  118. <sl>            "\\f(HI"        
  119. </sl>            "\\fP"            
  120.  
  121. <tt>            "\\f(CR"
  122. </tt>            "\\fP"
  123.  
  124.  
  125. <comment>    +    ".PP\n.ft HI"        +
  126. </comment>    +    ".ft P"            +
  127.  
  128. <x>
  129. </x>
  130.  
  131. % within code and verb, first turn off the escape mechanism
  132.  
  133. <code>        +    ".sp\n"
  134.             ".ft CR\n"
  135.             ".eo \n"
  136.             ".nf"    +
  137. </code>        +    ".fi \n"
  138.             ".ec\n"
  139.             ".ft P\n"
  140.             ".sp"    +
  141.  
  142. <verb>        +    ".sp \n"
  143.             ".ft CR\n"
  144.             ".eo \n"
  145.             ".nf"    +
  146. </verb>        +    ".fi \n"
  147.             ".ec\n"
  148.             ".ft P\n"
  149.             ".sp"    +
  150.  
  151.  
  152.